starting state pattern