optimization in narrow phase improved