add deleteAll and addAll function