fixing ns errors