add some modifications to span.bb and span.bbh