remove redundant object return