clean up call to table comparison to be less arcane