* adjust code for batch assignto.