first stab at iterative decoding
put the thing back