explain how pledging works