implement variable checker