remove linear search version