got basic looping to work