revised scripts and plots