edited method calls for read and write files