merge duplicate hashing class with nested class