add variable speed and duration