preparing for drawing traces