added default function ns