clean up trace printing