fixing case macro