added generated code