skip unnecessary loop iteration