added checks.