navigation: replaced foreach-loop