implementation method nextState