deal with empty table