added testing table function