a number is required, not NoneType