implemented shallow nesting and refactored policy logic for destroy