modified processOut to skip blank saveToTables