changes in loop