switch to generate branch