change definitions of rank/select