removed useless variable in search operation.