trying to see what the problem is with this tempOrder