factor binary search out