updated to java 7