update Generic GetValue method