added inner class to set Actor state