renamed spin->map