refactor tablePrefixer