change code to reflect that nargs is not None