added nparts to command line input