global doLooping seems to work