added update code to get from thomas