next could result in an array of next states, need to handle that.