code for exo analysis