trying to get around comparing to NULL