clean up modes