added cl_rebin to library