simplify two return statements