working magnetic correction at last