modified copy to clipboard