IF the idle goes up and down that means that your IACV (idle air control valve) or AAC is trying to adjust idle. I had the same problem I replace d the IACV and the TPS (throttle position sensor).
U don't have to replace new parts just check or clean the old parts.Here is a link that tells You how to clean the IACV
zerothread?id=251133
And try to unplug the TPS (the rpm should go up for a few seconds) and go down.
I fixed the problem by replacing both of the parts but i had spare parts. Let me know if this helped.