removed numBytes return from setFileContents