adding path stability hopstability metric formulars