added estimation of real distance between windows