changed the loop func
updates