finish refactor coord search class