added blank variable check