Screeching noise

sometimes when i start my engine(2006 nissan sentra) there seems to me a rough idling noise and when i turn the engine off there is a screeching noise
any suggestions