missed a sql reference where nulls/non-values should be checked