add function for adding and removing items