instn all csts before instn edges, save time.