new method checkOrder added