prevent null reference error