On Monday Apple displayed many new features surrounding its products though one feature showed just how much Apple has improved when it comes to privacy.

Apple announced their use of artificial intelligence, features like facial recognition, authentication, and software that knows whats in your photos and videos. Apple’s newest version of Photos app will have facial recognition to create virtual albums of people that users frequently take photos with or of. It also utilizes the ability to search using key words. Federighi said those features are powered by deep learning, which utilizes artificial intelligence.

Craig Federighi, senior vice president of software engineering at Apple, emphasized that the company uses machine-learning algorithms to be able to provide certain features such as for photos only within a users iPhone not on Apple’s servers. “We believe you should have great features and great privacy,” said Federighi.  “When it comes to performing advanced deep learning and intelligence of your data, we’re doing it on your device, keeping your personal data under your control.”