added another update method