adds classSet and validation