comment reading and writing