ashley's ongoing analysis code