added 'addconfirmed'function