added sprite.duration