clean up analysis