This was a fix to errors of an un-declared variable