use transition if dataset length is the same as before
convert timespan parameter to integer first