modify table family function (not complete)