current code and plots