why these needless returns are added?