cleaning up code, running analysis