better structure for object output