conditional on class