adding hashTransaction code