removed stateText because it still wasn't working