match estado to correct class