updates to paintGrid