setting up script for processing all samples