updated deprecated uniq construct