fixed java 7 incompatibility