make java 6 compatible