cleanup label code