generating definition file