added some parameters to select between the two arms