abstracted some of the file attritubutes to parameters