cleaned up some old plotting code