get rid of excessive newline