modify the paster func