Revised the way to create a dual table