added check for missing display