writing out theta