attempt to fix loop iteration