remove redundant libraries