moved classification logic to Variant object.