put newline at the end instead of beginning