addState doimplementovany