fix near vary_portion