update all units