fixing '.find' method