implemented search capability