changes Nparts for num_parts in kern
Nparam changes to num_params