when my car idles it makes a squealing/screeching sound similar to what a fan belt makes when its on its way out & when i accelerate the sound slowly goes away.

Has anyone had this problem recently? just need to know what it could be so i can fix it.