add nscoding for SHmodel