adding iteration through hashmap elements, cleaning all unnecessary comments