tracking state in classed