setting a flag