UPD : remove pingpong algorithm not needed