change path for sorter and fix variable name for table index