removed some superfluous functions at ns scope