order logic update