fixing double iterate
double iterate and mum fixed
removed debug prints and fixed iterate popping