why won't my hyundia xg300l go over 2000 rpm when I accelerate? on 2001 Hyundai XG300

bought an idle control sensor, still won't run right. I set it over one way it idles too high but accelerates, set idle normal and only accelerates to 2000 rpm. why?

Asked by for the 2001 Hyundai XG300
do you have any eng codes? do you mean tps sensor?
yea, the tps is what I replaced. Thats the code that came up. A friend said it could be the restat from the throttle cable. Does that sound right?
no could be plugged exh or fuel filter or poss timing belt jumped you have a ck eng light on?wether you do or not have codes scanned at auto zone for free and post please
1 more answer