fix ordering.py