huge speed up for drawing