added paste function