removed internalState