update code for nscoder