adding update. Need to figure out error handling.