changed time series to be relative to a given frame