minor changes in combinetables to solve a mismatch problem between coordinates and betas