added theta saving