slice_stg2 should not depend on idx2