updated pipeline. cahged windowsize to internal segment size