add containsKey and clear function