switch to flag