changed implementation of iterate to include sqrts of 2 and such'