fixed lambda sugnature for confirm()