cleaned up traceview and xmax programs