made the get*() methods to generators