delete Flag in if