minor cleaning-up, including fixing the case of no selected markers or
arrays