reversed logic
removed search
dist