update for getNextAction