remove unused cases