comparison though pointers in collections