making it java6 compliant