index functions: return an int Stop returning a void for functions, future-proofing them to allow them to fail.