Made clear_debs funcion global