not removed from if statement in main