implementing edit bet (delete)