sharing properrtties of hash in hash