format tables in gbm