distint is woring with regex