remove newline at the end of code