cleans up hash function for iam, removing noisey comments as well