clean up the argument checks.