remove Generator.clear method.