update to analysis script