rename n_components -> ncomponents