You could avoid having a separate definition by using a default value for the argument p in the function below.