changed \r\n to \n