removing flags