remove unused modes