code for theta experiments