added comment and error message to the check.