got graph working