remove empty last line