working register which was working properly all the time, problem was the vector we used for simulations. will explain it to u guys tmr