get funtionality added to hashmap
and linked list corrected: