simplify: prefer containsKey(x) to keySet().contains(x)