refactoring until graphjson