fixed the variable check