rewrite  backend to removed replaced items