optimized best ref