minor code refactoring in Tween