remove newMode test variable from code