fixed java 7 syntax