removed required flag for branch and branch code