add solve and case