modified ub_test
ub_test seems to work