fixing java 7