computing UB-u