refactored the Apigenfile file