functions next and restart to simplify animation
ver 1.2.1