fixing FileFunc class