remove empty line in the end