YOMO-7190 optimized function