copy from sample