hangs on last line, changed conditions