hash function added to note