the generator needs to be generated in a lambda