minor change to check for variables