created private find_tag method