changed contains to containsKey