make this applicable to the whole graph