fix level order
tests on pgm's