implemented dirty rects