removed Java 8 API call