[beam release] [time series tool]
simplify code