adding iteration number to context