is there a vacuum leak? or it could be a bad idle air contol valve had alot of problems with iac goin bad and causing car to rev real high or not idle at all