wrapped logic with seq generator