paste function working