refining params and edges