implemented match in search