check generated code