corrected inappropriate return value