changed state to symbol instead of string