finalized copy script