ensuring classes are consistent