some minor changes in my plotscript