get all id at first
generator function