replaced validation of timeseries median with timeseries max because median is extremely slow to compute