make generator into a list