The JCPOA kept Iran from developing nuclear weapons. It was only the abrogation of this agreement by Trump which led Iran to resume enrichment of uranium.