main: cleared lines in infinite loop