update generate petition