added checks for labels