modified clickable_object to use compare method