typo on merge in figureOutState