allow for NULL type, although that really shouldn't happen