needed to update the model's data with loop info
setting loop index and clearing out immediate when needed