fix euclidian mode. add reset.