update info about state pattern