removed return from last line in function