added extract time series function
update to use function from analyse_functions