debugging / simplifying while loop for tween generation