optimize for delete ios