huge improvement of performance in drawing