update unit model