final version of analysis script