adds containskey method