remove an overflow in theta inizialization buffers, still working on it