CASE macro updating