changing \r to \n