upgrading project to java7