added adddatafile function