improve performance iterating successors