flag removal now working