reverting graph stuff