ns and d