fixed last character issue. linebreaks are still odd