ground work for magic grid id