made position search more accurate