change from assert to nested