unique ptr usage in feature