insert of stages inside flow