making a type_handler