setting up analysis