changed the filehandler to go to the correct file