removing JDK 6 incompatiblity