checks variables