getting it to work on java 7