added temporary functions to tableFactory