Thanks for the feedback. The flag [i:nc8a3ov3]output_already[/i:nc8a3ov3] is there so that once a control value is output for a given number, it ignores the rest of the entries for this number and go analyze the next number available. In case for a number it doesn't see any entries where control = 'Y', it has to output the last entry of this number anyways even though this last entry's control value is 'N'. I wish my understanding is right. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->