fixing file variable errors