removed test read and write functions