everything seems to work on a laptop
finisheing the non-magnetic code