edited tSeriesFromRoi.m