removing flags works