make it compile with java8