added the animate option