optimized value passing