preparing for flag