add the mechanism to expand labels