use method inside of hash v2