added set_badUBL function