fix constructW, LapScore and NDFS