rewrite the fcg-remove