fixing to build in java 7