removing warnings after upgrade to java 7