fixed input and removed seach_domain & search_att from isOrphan