trying to make it compile against java 7