update the whole system