handle null entries in the table