used Java 6 instead of Java 7