tweaking java7