added check for empty table in SaveSS