added error handling to UpdateLookup