finished stuff for option=State