changed way to draw the overlays