finding successor node