correct variable checking.