protecting the custom_types from modification