change the invocation of sequence

repeatedly invoke sequence generator by 'for' loop