methods refining + graph building