setting flags.