optimize opening