repaired order functionality