implemented efficient drawing)