script to hadd samples