figured out iterative fast expt