2003 kia spectra

i changed the spark plugs and wires and ignition coils and ignition wire . the car was running fine till i replaced these items now it is misfiring and idling erratic . what can i so ? ob2 scanner says random misfire on 1 and 3 cylinders .