update cases in tool_filter()