table of values working