now compiling with Java 6