java 7 compatibility