remove duplicate return statement