modify process of copy_data in ebook