remove mode markers