generated 2nd table from 1st