cleaned up func args. Fixed uninitialized bisect slices