shuffle some graphing code