GENERATOR,FUNCTION