enhanced the update repo assertion