more tracing and ordering the output of tally