fix ordering method