trying to solve distinct