latest worked version, cut not filted data size to be the same as filtered, easier for plotting