more work on formatting data