cleaner version of cleaner version - graph works!