renamed isRange doc to isBewteen