remove java7 incompatibility