forEach instead of explicit for loop?