removed java 1.7 specific syntax