hashmap updation - need to make them synchronized