removes the java 1.7 only method