make java 7 compatible