update with wrapper class