fixed channel issue in systems, added ecdf sampling