use frame.next for animation