java 6 compatability