fix reverse order