handle collisions in hashmap