fixed usage of find by pulling out second argument