update loop index also when old results found