added looping test if it's looping, this seemed to keep it from falling out of sync