added paste functionality