updated findSuccessor method