fixed #3 search method impl