reading and writing working