updated table() to include 'no data' row if data not present