renamed convert to purify