removing duplicated resources