modify label related code