closed and matched classes