rearrange a few lines in calRange