worked out the optimization settings