modified state class