rm function's dependence on flag-stronger