change && nums[center] to nums[lower]