def state_translate(st,ind,par):
    """ translate st to info on whether ind is true. ind can be elig or high_skilled """

    ST = par.ST[st]
    if ind == 'elig':
        if ST[0] == 1:
            return 1
        else:
            return 0
    elif ind == 'high_skilled':
        if ST[1] == 1:
            return 1
        else:
            return 0