changing to java 6