this commit fixes #9 search function