new and improved code is more efficient
turn off plotting