script to analyse