adding factory for pledges