added function generator
sorta have list generator working