change the flag in the plans