initial hatt table builder