support between...and...
do some optimization