update for java 7