changed output to build a latex table