allow magnetism to be added to a layer