wrap result in a value class