use Java 8 forEach