put functionality in hashMap working