improve iterate and also have another config demo