corrected return type of lambda