rename hook and macro