actually got graphs working