initial magnetic loop stuff