generation parameter is required in candidate