NS added more functions to compute descriptors