update app to lose last empty line