added copying fileData