added more detailed output to variable check