updates reading and writing to parse