explain legacy-mode