wandreplacer algorithm, no time to code today