migration to Java 8