final definePaintOrders -> with loop