some untestes optimization