streamline the monitor-menu-population code