fix performance bug (tables aren't tuples)