begin copy paste functionality