find cols splitted and corrected
refactored code passing test, not yet used in main