refactor
graphs