changed ordering in memort