changed a variable name from pendingWord to tableName because it is used only for the table name as a result.