added data transfer from opened file