contains uses class_name property not type