fix loop function