added 3rd check.