fix hasKey to containsKey