implementing findAndDelete