remove redundant resources