trying to solve a newline error I'm getting