performance improvements in LegalSuccessors()