updated name of file variable in constructor