optimization for cutail