debuged hashing