removing addAttribute and addFileData