remove redundant sources