fix newtable output