handle deletes correctly