somehow previous worked without having right total size per segment