make pointer compareable