added own has class, remove class and add class functions to stop
duplicate class names. added notValid class