added a paste function