updated analysis scripts