add custom_type_preprocessing method