actually check for underfined correctly.