writes theta