adjusted topology ordering