made graph work minimally