working on hashmaps implementation