move Grid to internal