get rid of empty line at the end