change buffer for copy and paste