add painting for debugging