\r removed when reading