ensure java 7 compatibility