removes newline, adds method