print and read fix