Modified getSuccessors