delete unused code in facets