trying to fix the problem with hash tables