delete feature and add missing case of add function