adjusting order and updating