added an option of choosing destination ranges

has not been debugged