simplify block label code