updating units