final setup and plots