added filling function for timeseries