added function to file entity