default implementation of iterateHash