remove not used flags