allow end-trimming in tabulate script to avoid bias