replacing addFileData with getFileDatas().add