corrected trace printing