got rid of last empty lines