added traceleft and traceright