using max optimization settings