corrected return value