moved from java7 to java6