beginning search
implemented search