removed Java 7 syntax / set to Java 6