make hidetable function