added type state.