add MovingRect source code