bug here, should be (index - degree() -1)