optimize openorder