added fast hash functions