update for java 8