replaced the \r with \n