make java 5 compliant