replaced keySet by entrySet and shrunk line to <= 120 chars