added magnetic current source