implemented ub testing