changed assert order