fixes in hashmaps and addition of parameter