make sure that the passed number is positive