update paste method