optimization with yl