working out binding and selection of nodes