added hashing to better compare the two