change spell name to id