got graph working I think