changes to analysis script