implemented copy range and move range commands