implemented update command