refactor long line in get_update_info()