table regression working