remove duplicated references