Modified interior(condition only) of main loop