restructure findInHalf