remove useless sources.