added resetHashes method