format account with segment table