trying to get it to run with Java 8