completed the table directory implementation