helper wrapper body function to unmarshal data