modify model to support inverse table