script for performing the analysis