update logic part for accept order