converted crudFlag from type to string