compatibility to Java 6