completed seach_path fn