added test
replaced iterators with simple map calls
removed iterator
getPath