New method to improve stability of luminescent perovskite nanocrystals can help produce better LEDs