removed num_pms
merging algo_khanna