adjustment for java 6