fixed errors in find