addPending method