finalizing samples