hash tables implementation clean up Part 1