update command when reach location