ensure all functions return a value