solves newline at end problem