what should i upgrade?

i have an i5-4670 and for my graphics card an rx580 8gb what should i upgrade first?