delete flag condition added