fix main Mutate functin (funny bug with loops). Update convert rule