generated proper tables