Update theta