implement loop ordering?