take generation-file as a parameter