updated order insertion