Integrating map with cases