added hash function to utils