added support for unbalanced/misspecified tables