atempted making a delete function