removed an extra deprecated return statement