improve table_get