adds case udpate functionality