finalized level ordering (I'm happy with it)