changed to java 6