named nested states working