removing ending newline