check for undefs