Abstract: I will describe how cosmic rays must modify the environment in which they are accelerated and how this leads to predict that the the end of the galactic cosmic ray spectrum should be around 1017 eV and be made of heavy nuclei. I will then describe how the galactic spectrum joins the emerging extragalactic cosmic ray spectrum, and how the global ultra high energy cosmic ray pectrum eventually ends.