optimized assignment